Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Converting Points from Cartesian to Polar or Spherical Form


Q3Point3D_ToSpherical

You can use the Q3Point3D_ToSpherical function to convert a three-dimensional point from Cartesian form to spherical form.

TQ3SphericalPoint *Q3Point3D_ToSpherical (
const TQ3Point3D *point3D, 
TQ3SphericalPoint *result);
point3D
A three-dimensional point.
result
On exit, a spherical point.
DESCRIPTION
The Q3Point3D_ToSpherical function returns, as its function result and in the result parameter, a spherical point that is the same point as the three-dimensional point specified by the point3D parameter.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996